<?php

$sql = "
SELECT 
	routine_name		as NAME, 
	created				as CREATE_DATE, 
	routine_schema		as DBOWNER, 
	routine_definition	as SOURCE_CODE 
FROM 
	`information_schema`.`ROUTINES` 
where 
	routine_schema = '{$param['db']}' 
	and routine_type = 'FUNCTION' order by routine_name
";

return $sql;

?>